<template>
  <view class="cm-popup"
    v-if="isExist"
    :class="[wrapperClass]"
    :style="[{ top: StatusBar + 'px' }]"
    @click.stop.prevent="clickHandler"
    @touchmove.stop.prevent="moveHandler">
    
    <!-- 遮罩蒙版 -->
    <view class="cm-popup-cover"
      :class="[coverAniClass]"
      @click.stop.prevent="coverClickHandler"></view>
    <!-- 弹框主体 -->
    <view class="cm-popup-content"
      :class="[popClass, cmClass, aniClass]"
      :style="[popStyle, cmStyle]">
      <slot></slot>
    </view>
    
  </view>
</template>

<script src="./cm-popup.js"></script>

<style lang="stylus">
@import './cm-popup.styl'
</style>
